package com.myownthemepark.s3vn;

import org.apache.zookeeper.AsyncCallback.DataCallback;
import org.apache.zookeeper.data.Stat;

public class S3vnDataCallback implements DataCallback{
	byte[] data = null;
	public synchronized void processResult(int rc, String path, Object ctx, byte[] data, Stat stat){
		System.out.println("S3vnDataCallBack: processResult: Got a call");
		this.setData(data);
		this.notify();
	}
	public byte[] getData(){
		return this.data;
	}
	private void setData(byte[] data){
		this.data = data;
	}
}